<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<div class="top-nav">
	<div class="my-info">
		<span><s:property value="#session.user.userName" /></span><a href="/swss/user/logout.action" >[退出]</a>
	</div>
	<ul class="nav">
		<s:iterator value="#request.myModList" id="mod" >
			<s:if test="#mod.type==1" >
				<li>
					<a class="btn" href="javascript:;"><s:property value="#mod.popedomName" /></a>
					<div class="nav-sub" >
						<s:iterator value="#request.myModList" id="sub" >
							<s:if test="(#sub.type==2)&&(#sub.parent==#mod.id)" >
								<dl class="sub-item clearfix" >
									<dt><s:property value="#sub.popedomName" /></dt>
									<dd class="pope-list" >
										
											<s:iterator value="#request.myModList" id="pope" >
												<s:if test="(#pope.type==3)&&(#pope.parent==#sub.id)">	
													<a   href="<s:property value="#pope.url" />"><s:property value="#pope.queue" />.<s:property value="#pope.popedomName" /></a>																	
												</s:if>
											</s:iterator>
									</dd>
								</dl>
							</s:if>
						</s:iterator>
					</div>
				</li>
			</s:if>
		
		</s:iterator>
	</ul>
</div>

<script type="text/javascript">
$("ul.nav>li").hover(function(){
	$(this).find(">a").addClass("here");
	$(this).find(".nav-sub").show(200);
},function(){
$(this).find(">a").removeClass("here");
	$(this).find(".nav-sub").hide();
});

$(".sub-item").hover(function(){
	$(this).addClass("here");
},function(){
	$(this).removeClass("here");
});
</script>